package com.git;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Hello { // 类名改为 HelloController 更合适

    @GetMapping("/hello")
    public String sayHello() { // 方法名和返回类型
        return "hello";
    }
}